#!/usr/bin/env sh

set -ex

# variables
VERSION=$1

# build
docker build -t "registry.cn-chengdu.aliyuncs.com/ycxtx/maintenace-shop:${VERSION}" .

# push
docker push "registry.cn-chengdu.aliyuncs.com/ycxtx/maintenace-shop:${VERSION}"
